/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dca.sistemascontrole.sinais;

/**
 *
 * @author Rafael
 */
public class DenteDeSerra extends Sinal {

    public DenteDeSerra(float periodo, float amplitude, float tempoAtuacao) {
        super(periodo, amplitude, tempoAtuacao);
    }

    @Override
    protected float getValue(long t) {
        float deltaT = (t - t0) % periodo;
        
        return (deltaT / periodo) * amplitude;
    }
}
